package com.wangdao.wechatmall.bean.vo.admin;

import java.util.List;

/**
 * @ClassName: LogDataVO
 * @Description ${DESCRIPTION}
 * @Author Xinhao Yi
 * @Date 2021/7/9  16:45
 */
public class LogDataVO {

    /**
     * total : 986
     * items : [{"id":985,"admin":"admin123","ip":"111.172.194.156","type":1,"action":"登录","status":true,"result":"","comment":"","addTime":"2021-07-09 16:41:14","updateTime":"2021-07-09 16:41:14","deleted":false}]
     */

    private int total;
    private List<LogVO> items;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<LogVO> getItems() {
        return items;
    }

    public void setItems(List<LogVO> items) {
        this.items = items;
    }

    public static LogDataVO ok(int total,List<LogVO> items){
        LogDataVO logDataVO = new LogDataVO();
        logDataVO.setTotal(total);
        logDataVO.setItems(items);
        return logDataVO;
    }
}
